{template 'member', 'header'}
<?php
$CATEGORYS = getcache('category_content_1','commons');
$MODEL = getcache('model','commons');
?>
<div class="layui-member-center">
  {template 'member', 'left'}
  <div class="layui-member-info">
  	<div class="layui-member-favorite">
    	<div class="layui-title"><h3>我的收藏</h3></div>
  		<ul class="layui-favorite-list">
  	  	{loop $favoritelist $k $v}
      	{php $db = pc_base::load_model('content_model');$db->table_name = $db->db_tablepre.$MODEL[$v['modelid']]['tablename'];$_r = $db->get_one(array('id'=>$v['contentid']));}
  	  		<li>
  	  			<a href="{$_r['url']}" title="{$_r['title']}" target="_blank"><img src="{$_r['thumb']}?x-oss-process=style/smallpic" alt="{$_r['title']}" /></a>
  	  			<div class="favorite-title"><h3>{$_r['title']}</h3><a class="layui-btn" href="index.php?m=member&c=index&a=favorite&id={$v['id']}">{L('delete')}</a></div></li>
  	  	{/loop}
  		</ul>
		<div class="layui-pagebox">
    		<div class="layui-laypage">{$pages}</div>
  		</div>
  	</div>
  </div>
</div>
{template 'member', 'footer'}